package com.souyun.serverbloguser.mapper;

import com.souyun.serverbloguser.entity.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component(value = "iDbBlogMapper")
public interface IDbBlogMapper {

    @Select("SELECT * FROM tb_user WHERE id = #{userId}")
    TbUser getUserById(@Param("userId") Integer userId);

}
